package com.phonebook.service.impl;

import com.phonebook.entity.Admin;
import com.phonebook.mapper.AdminMapper;
import com.phonebook.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 学生Service实现类
 *
 * @author 高旭
 * @date 2021-04-24
 */
@Service("adminService")
public class AdminServiceImpl implements AdminService {

    private final AdminMapper adminMapper;

    @Autowired
    public AdminServiceImpl(AdminMapper adminMapper) {
        this.adminMapper = adminMapper;
    }

    @Override
    public Admin login(Admin admin) {
        return adminMapper.login(admin);
    }
}
